package utilitaire;

import java.util.ArrayList;
import java.util.Collections;

import modeles.Contact;

/**
 * 
 * Class Controller du tableau de contact
 * listContact		Objet ArrayList<Contact>
 * 
 * @author Paul BEZARD-FALGAS
 *
 */
public class ListContact {
	public ArrayList<Contact> listContact = new ArrayList<Contact>();
	
	public ListContact(){
	}

	public void add(Contact contact) {
		listContact.add(contact);
	}

	public void remove(int row) {
		listContact.remove(row);
	}
	
	public int size() {
		return listContact.size();
	}

	public Contact get(int rowIndex) {
		return listContact.get(rowIndex);
	}
}
